package com.tj.bo.product.client;

import com.tj.bo.product.client.vo.*;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: binary (mr.vencnet@gmail.com)
 * Date: 2020-06-03
 * Time: 14:31
 */
public interface ProductService {


    /**
     * 获取当前活跃的产品列表
     *
     * @return
     */
    ProductListVo getAllActiveProductList();

    List<Product> getAllProductList();


    Product getProductByCode(String productCode);


    /**
     * 获取全局的设置
     *
     * @return
     */

    ProductGlobalSetting getGlobalSetting(boolean isGrey);

    /**
     * 大盘记录变动数据
     *
     * @param marketOddsHistory
     * @return
     */
    boolean insertMarketOddsHistory(MarketOddsHistory marketOddsHistory);

    /**
     * 获取大盘赔率配置表
     *
     * @return
     */
    List<MarketOddsConfig> getMarketOddsConfigInfo();


    /**
     * 变动收益率
     *
     * @param variableOdds
     * @return
     */
    boolean updateMarketProduct(String variableOdds, String productCode);

    /**
     * 设置大盘初始值
     *
     * @return
     */
    boolean updateProductByOdds(String productCode);

    /**
     * 设置大盘最小值
     *
     * @return
     */
    boolean updateProductByMiniOdds(String productCode);

    boolean updateProductBasicInfoById(Integer id, Product product);

    boolean updateProductBasicInfoByProductCode(String productCode, Product product);

}
